//
//  FCImageChoiceShow.h
//  commonUse
//
//  Created by WJC on 2018/11/21.
//

#import <UIKit/UIKit.h>
#import "TZImagePickerController.h"
#import "UIImageView+WebCache.h"
#import "SVProgressHUD.h"
#import "WJCDefine.h"
#import "UIViewController+returnBlock.h"
#import "FCCGetCurrentVcTool.h"
#import "UIViewController+runtimeCheck.h"
#import "FCPhotoBrowserTool.h"
@class FCImageChoiceShow,FCTImgBLabelView;
@protocol FCImageChoiceDelegate <NSObject>
/**
图片列表刷新时代理
 */
-(void)FCImageChoiceImage:(FCImageChoiceShow *)choiceView;
@end
@interface FCImageChoiceShow : UIView


/**
 用于继承的私有属性方法
 */
@property (nonatomic,strong) FCTImgBLabelView *addImgView;
@property (nonatomic,assign) CGFloat imgHeight;
@property (nonatomic,assign) NSInteger maxShowToCount;

-(void)imageShow:(UITapGestureRecognizer*)sender;

/**
 最多上传的图片数量
 */
@property (nonatomic,assign) NSInteger maxChoiceImage;
/*
 takePhoto
 saveFile
 FCImagePhoto
 */
/**是否需要拍照取图片*/
@property (nonatomic,assign) BOOL takePhoto;
/**
 是否显示下发标签
 */
@property (nonatomic,assign) BOOL isShowImgTag;
@property (nonatomic,strong) NSIndexPath *indexPath;
/**
 显示下发标签当前选择 isShowImgTag未true有效
 */
@property (nonatomic,assign) NSInteger choiceShowImgTag;
/**
 已选择下发标签文字 isShowImgTag未true有效
 */
@property (nonatomic,assign) NSString *choiceShowStr;
/**
 显示下发标签文字 isShowImgTag未truey有效
 */
@property (nonatomic,assign) NSString *noneChoiceShowStr;
/**
 是否显示右上角关闭
 */
@property (nonatomic,assign) BOOL isShowCloseBtn;
/**
 搜索代理
 */
@property(nonatomic,weak)id<FCImageChoiceDelegate> delegate;

//刷新展示
-(void)refreshImage;

/**
 初始化

 @param imageArr 图片数组
 @param count 单行最大数
 */
-(instancetype)initWithFrame:(CGRect)frame andChoiceArr:(NSMutableArray*)imageArr andMaxShowPerCount:(NSInteger)count;
@property (nonatomic,strong) NSMutableArray *strArr;
@property (nonatomic,strong) NSMutableArray *imageArr;
-(void)refreshWithNoDelegateImage;

@end
